package com.skymxc.skinpractice

import android.app.Activity
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.MenuItem
import com.skymxc.skinpractice.databinding.ActivityThirdMainBinding

class ThirdMainActivity : Activity() {
    lateinit var binding:ActivityThirdMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        binding = ActivityThirdMainBinding.inflate(layoutInflater)
        setContentView(binding.root)
//        setSupportActionBar(binding.thirdToolbar)
//        supportActionBar?.setDisplayHomeAsUpEnabled(true)
    }

    override fun onOptionsItemSelected(item: MenuItem): Boolean {
        when(item.itemId){
            android.R.id.home -> onBackPressed()
        }
        return super.onOptionsItemSelected(item)
    }
}